<?php
namespace app\admin\validate;
use think\Validate;

class Account extends Validate {
    protected $rule = [
        ['username','require|max:20'],
        ['password','require|max:16'],
    ];
}